﻿using SqlSugar;

namespace JinYuan.Models
{
    /// <summary>
    /// 电芯出站
    /// </summary>
    public class BGearEntity
    {
        public int[] MyNo = new int[3];//AB序号
        public short[] listRes = new short[3];//AB反馈结果
        public string[] ScanTime = new string[3];//AB芯包扫码时间
        public string[] listBatCode = new string[3];//芯包条码
        public string[] judgment_result = new string[3];//AB芯包出站判定结果

        public short[,] list_Data1 = new short[3, 28];//芯包信息1
        public int[,] list_Data2 = new int[3, 19];//芯包信息2（焊机相关次数）
        public float[,] list_Data3 = new float[3, 54];//芯包信息3(设定值)
        public float[,] list_Data4 = new float[3, 47];//芯包信息4(实际值)

        public short[,] list_pan = new short[3, 1];//物流线托盘码
        //
        public int[,] CCD_Data = new int[3, 16];//芯包CCD信息1,2,3
        public int[,] CCD_NgNo = new int[3, 16];//芯包不良编码信息1,2,3
        public float[,] Thickness_Data = new float[3, 3];//电芯3_厚度数据信息1,2,3
        public int[,] Thickness_PLCData = new int[3, 3];//电芯3_厚度数据OKNG1,2,3 与ccd一样 1 OK，0 NG，2 缺图
        /// <summary>
        /// 通道
        /// </summary>        
        public int ChannelNo { get; set; }

        /// <summary>
        /// A芯包扫码时间
        /// </summary>
        [SugarColumn(IsPrimaryKey = false)]
        public string CSBYHASCANNINGTIME { get; set; }
        /// <summary>
        /// 上传状态
        /// </summary>
        public string UpState { get; set; }
        /// <summary>
        /// 反馈结果
        /// </summary>
        public int Result { get; set; }
        /// <summary>
        /// 区分A和B
        /// </summary>
       // public string A_B { get; set; }
        /// <summary>
        /// 电芯1_CCD1结果 1 OK，0 NG，2 缺图
        /// </summary>
        public int CCD1 { get; set; }
        public int CCD2 { get; set; }
        public int CCD3 { get; set; }
        public int CCD4 { get; set; }
        public int CCD5 { get; set; }
        public int CCD6 { get; set; }
        public int CCD7 { get; set; }
        public int CCD8 { get; set; }
        public int CCD9 { get; set; }
        public int CCD10 { get; set; }
        public int CCD11 { get; set; }
        public int CCD12 { get; set; }
        public int CCD13 { get; set; }
        public int CCD14 { get; set; }
        public int CCD15 { get; set; }
        public int CCD16 { get; set; }
        public int CCD17 { get; set; }
        public int CCD18 { get; set; }
        public int CCD19 { get; set; }
        public int CCD20 { get; set; }
       
        /// <summary>
        /// 电芯1_厚度数据1
        /// </summary>
        public float Thickness1 { get; set; }
     //   public float Thickness2 { get; set; }
     //   public float Thickness3 { get; set; }
        /// <summary>
        /// 电芯1_厚度 PLC判定 OKNG   1 OK，0 NG
        /// </summary>
       // public int ThicknessPLCResult1 { get; set; }
     //   public int ThicknessPLCResult2 { get; set; }
     //   public int ThicknessPLCResult3 { get; set; }
        /// <summary>
        /// 电芯1_厚度OKNG 显示OK NG
        /// </summary>
        public string ThicknessResult1 { get; set; }
    //    public string ThicknessResult2 { get; set; }
     //   public string ThicknessResult3 { get; set; }
        /// <summary>
        /// 电芯_CCD1结果  1 OK，0 NG，2 缺图
        /// </summary>
        public string CCDResult1 { get; set; }
        public string CCDResult2 { get; set; }
        public string CCDResult3 { get; set; }
        public string CCDResult4 { get; set; }
        public string CCDResult5 { get; set; }
        public string CCDResult6 { get; set; }
        public string CCDResult7 { get; set; }
        public string CCDResult8 { get; set; }
        public string CCDResult9 { get; set; }
        public string CCDResult10 { get; set; }
        public string CCDResult11 { get; set; }
        public string CCDResult12 { get; set; }
        public string CCDResult13 { get; set; }
        public string CCDResult14 { get; set; }
        public string CCDResult15 { get; set; }
        public string CCDResult16 { get; set; }
        public string CCDResult17 { get; set; }
        public string CCDResult18 { get; set; }
        public string CCDResult19 { get; set; }
        public string CCDResult20 { get; set; }
        

        /// <summary>
        /// 芯包条码
        /// </summary>
        public string BarCode { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        
        /// <summary>
        /// 电芯A/B出站判定结果
        /// </summary>
        public string CSBYHOUTSTATIONJUDGMENTRESULT { get; set; }
        /// <summary>
        /// 电芯A/B工序名
        /// </summary>
        public string CSBYHPROCESSNAME { get; set; }
        /// <summary>
        /// 电芯A/B班次
        /// </summary>
        public string CSBYHSCHEDULE { get; set; }
        /// <summary>
        /// 电芯A/B进站时间
        /// </summary>
        public string CSBYHINSTATIONTIME { get; set; }
        /// <summary>
        /// 电芯A/B出站时间
        /// </summary>
        public string CSBYHOUTSTATIONTIME { get; set; }
        /// <summary>
        /// 复投次数
        /// </summary>
        public int RethrowNum { get; set; }
        /// <summary>
        /// 标志
        /// </summary>
        public int Flag { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        //public string TestTime { get; set; }

        public string RFID { get; set; }
        public string ScanBarRes { get; set; }



        public string flatness_setpoint { get; set; }
        /// <summary>
        /// 平面度实际值
        /// </summary>
        public string flatness_actual { get; set; }
        /// <summary>
        /// 平面度判定结果
        /// </summary>
       // public string flatness_judgment { get; set; }
        /// <summary>
        /// 外观设定值
        /// </summary>
        public string appearance_standard { get; set; }
        public string CCD1NgCode { get; set; }
        public string CCD2NgCode { get; set; }
        public string CCD3NgCode { get; set; }
        public string CCD4NgCode { get; set; }
        public string CCD5NgCode { get; set; }
        public string CCD6NgCode { get; set; }
        public string CCD7NgCode { get; set; }
        public string CCD8NgCode { get; set; }
        public string CCD9NgCode { get; set; }
        public string CCD10NgCode { get; set; }
        public string CCD11NgCode { get; set; }
        public string CCD12NgCode { get; set; }
        public string CCD13NgCode { get; set; }
        public string CCD14NgCode { get; set; }
        public string CCD15NgCode { get; set; }
        public string CCD16NgCode { get; set; }
        public string CCD17NgCode { get; set; }
        /// <summary>
        /// 二维码ng 不良编号
        /// </summary>
        public string CCD18NgCode { get; set; }
        public string BarCodeResult { get; set; }
        /// <summary>
        /// 进出站条码匹配结果
        /// </summary>
        public string barcode_match_result { get; set; }
        /// <summary>
        /// NG代码汇总
        /// </summary>
        public string ng_code_summary { get; set; }
        public int PlcResult { get; set; }

        /// <summary>
        /// 结果数据是否上传MES
        /// </summary>
        //public string Flag1 { get; set; }


        //public string Info { get; set; }
        /// <summary>
        /// 进出站电池等级
        /// </summary>
        public string in_battery_grade { get; set; }
        /// <summary>
        /// 进出站电池等级
        /// </summary>
        public string out_battery_grade { get; set; }
        // MES返回分选方案
        public string Mes_sorting_scheme { get; set; }
        /// <summary>
        /// MES返回电池档位
        /// </summary>
        public string Mes_battery_Grade { get; set; }
        //撕膜机
        public string SM_cleaning_defocus_dist { get; set; }
        public string SM_cleaning_peak_power { get; set; }
        public string SM_cleaning_frequency { get; set; }
        public string SM_cleaning_speed { get; set; }
        public string SM_cutting_defocus_dist { get; set; }
        public string SM_cutting_peak_power { get; set; }
        public string SM_cutting_frequency { get; set; }
        public string SM_cutting_speed { get; set; }
        public string SM_dust_removal_wind_speed { get; set; }




    }
}
